/*
 * Main.fx
 *
 * Created on 20.03.2010, 16:05:30
 */

package javafx191labs.eugryumova.lab01;

/**
 * @author Root
 */

// place your code here

import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.shape.*;
import javafx.scene.Group;
import javafx.scene.effect.*;
import javafx.scene.paint.*;






Stage {
    title: "Зима"
    scene: Scene {
        width: 640
        height: 480
        content: [

            Rectangle {
                x: 0, y: 0
                width: 640, height: 240
                fill: LinearGradient
                           {
                           startX: 0.0, startY: 1.0, endX: 0.0, endY: 0.0,
                           proportional: true
                           stops: [
                                 Stop {offset: 0.0 color: Color.web("#99ddff")},
                                 Stop {offset: 1.0 color: Color.web("#337799")}
                                 ]
                           }
                        }


Group {
        content: [

              Polygon {
                 points: [100.0,  160.0, 150.0, 100.0, 200.0, 160.0]
                 fill: Color.web("#006400")
                      }

              Polygon {
                 points: [80.0,  200.0, 150.0, 120.0, 220.0, 200.0]
                 fill: Color.web("#006400")
                      }

              Polygon {
                 points: [50.0,  250.0, 150.0, 150.0, 250.0, 250.0]
                 fill: Color.web("#006400")
                      }

              Rectangle {
	         x: 130, y: 250
	         width: 40, height: 30
	         fill: Color.web("#8B4513")
                        }

                  ]
     }

Group {
	content: [

            Circle {
	        centerX: 320, centerY: 400
	        radius: 30
	        fill: Color.web("#FFFFFF")
                stroke: Color.web("#000000")
                strokeWidth: 1.0
                   }

            Circle {
	        centerX: 320, centerY: 360
	        radius: 20
	        fill: Color.web("#FFFFFF")
                stroke: Color.web("#000000")
                strokeWidth: 1.0
                   }

            Circle {
	        centerX: 320, centerY: 330
	        radius: 15
	        fill: Color.web("#FFFFFF")
                stroke: Color.web("#000000")
                strokeWidth: 1.0
                   }

            Line {
	      startX: 340, startY: 360
	      endX: 370, endY: 370
	      strokeWidth: 1
	      stroke: Color.web("#000000")
                 }

           Line {
	      startX: 300, startY: 360
	      endX: 270, endY: 370
	      strokeWidth: 1
	      stroke: Color.web("#000000")
                 }

          Ellipse {
	     centerX: 327, centerY: 325
	     radiusX: 4, radiusY: 3
	     fill: Color.web("#363636")
             stroke: Color.web("#551A8B")
             strokeWidth: 1.0
             effect: Lighting {
                     diffuseConstant: 1.5
	             specularConstant: 1.0
	             specularExponent: 15
	             surfaceScale: 1.5
                              }
                  }

         Ellipse {
	     centerX: 313, centerY: 325
	     radiusX: 4, radiusY: 3
	     fill: Color.web("#363636")
             stroke: Color.web("#551A8B")
             strokeWidth: 1.0
             effect: Lighting {
                     diffuseConstant: 1.5
	             specularConstant: 1.0
	             specularExponent: 15
	             surfaceScale: 1.5
                              }
                  }

         Polyline {
	     points : [ 312,338, 316,335, 320,338, 324,335, 328,338 ]
	     strokeWidth: 1.0
	     stroke: Color.web("#000000")
                  }

	]
}

        Arc {
	    centerX: 350, centerY: 253
	    radiusX: 50, radiusY: 50
	    startAngle: 15, length: 150
	    type: ArcType.OPEN
	    fill: Color.web("#FFA500")
            effect:Glow {
	          level: 0.4
                         }
            }

Group {
       content: [

        Polygon {
            points: [400.0,  300.0, 500.0, 220.0, 600.0, 300.0]
            fill: Color.web("#8B5A2B")
                 }

        Rectangle {
	    x: 400, y: 300
	    width: 200, height: 100
	    fill: Color.web("#8B5A2B")
                  }

       Polygon {
	   points : [ 600,400, 600,300, 630,280, 630,380 ]
	   fill: LinearGradient {
	        startX : 0.0
	        startY : 0.0
	        endX : 1.0
	        endY : 0.0
	        stops: [
		   Stop {
			color : Color.web("#8B5A2B")
			offset: 0.0
		        },
		   Stop {
			color : Color.web("#8B4726")
			offset: 1.0
		        },
	                ]
                               }
               }

       Polygon {
	   points : [ 600,300, 500,220, 530,200, 630,280 ]
	   fill:LinearGradient {
	        startX : 0.0
	        startY : 0.0
	        endX : 1.0
	        endY : 0.0
	        stops: [
		   Stop {
			color : Color.web("#FF4500")
			offset: 0.0
		        },
		   Stop {
			color : Color.web("#CD0000")
			offset: 1.0
		        },
	                ]
                               }
               }

        Rectangle {
	      x: 450, y: 310
	      width: 100, height: 60
	      fill: LinearGradient {
	            startX : 0.0
	            startY : 0.0
	            endX : 1.0
	            endY : 0.0
	            stops: [
		    Stop {
			color : Color.web("#E6E6FA")
			offset: 0.0
		         },
		    Stop {
			color : Color.web("#B0E0E6")
			offset: 1.0
		        },
	                 ]
                               }
             stroke: Color.web("#000000")
             strokeWidth: 1.0
             effect: Bloom {
	               threshold: 0.9
                           }

                  }

        Line {
	    startX: 500, startY: 310
	    endX: 500, endY: 370
	    strokeWidth: 1
	    stroke: Color.web("#000000")
}

	]
}








]
    }
}